package com.shpng.cheapenglish.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import com.shpng.cheapenglish.manager.UserManager;
import com.shpng.cheapenglish.manager.WordManager;

public class InitServlet extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = -432932872651570116L;

	@Override
	public void init() throws ServletException {
		UserManager userManager = UserManager.getInstance();
		userManager.initUser();
		WordManager wordManager = WordManager.getInstance();
		wordManager.initWords();
		wordManager.initUserUnit();
		wordManager.initUserWords();
		System.out.println("init successfully");
		super.init();
	}

}
